package org.sibframework.sda.test;

import java.lang.reflect.Field;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.sql.SQLException;

import org.sibframework.sda.manager.IModelManager;
import org.sibframework.sda.test.objects.MdBed;
import org.sibframework.utils.Describer;

public class test {


	/**
	 * @param args
	 * @throws SQLException 
	 */
	public static void main(String[] args) throws SQLException {

		test t = new test();
		try {
			Field field = t.getClass().getDeclaredField("bedManager");
			ParameterizedType genericType = (ParameterizedType)field.getGenericType();
			Class cla = (Class) genericType.getActualTypeArguments()[0];
			Describer.describe(cla);
		} catch (NoSuchFieldException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (SecurityException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}
	
	
	private IModelManager<MdBed> bedManager = null;
	
	public void test() {
		try {
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
